package com.bw.live_streaming.dao;

import com.bw.live_streaming.entity.InquiryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * 
 * @author wj
 * @email sunlightcs@gmail.com
 * @date 2021-08-22 21:43:42
 */
@Mapper
public interface InquiryDao extends BaseMapper<InquiryEntity> {
    @Update("UPDATE inquiry SET inquiry_num =inquiry_num+ #{num} WHERE inquiry_id = #{id}; ")
    void updNum(@Param("id") Integer inquiryId,@Param("num") int i);

}
